#ifndef PAGEFIRE_H
#define PAGEFIRE_H

#include <QWidget>
#include <QLabel>
#include <QTimer>
#include "global_def.h"

namespace Ui {
class PageFire;
}

class PageFire : public QWidget
{
    Q_OBJECT

public:
    explicit PageFire(QWidget *parent = nullptr);
    ~PageFire();
    void setSHDStat(uint8_t car,uint8_t index,uint8_t stat);
    void setLHDStat(uint8_t car,uint8_t index, uint8_t stat);
private slots:
    void on_Btn_ResetFire_clicked();
signals:
    void signal_ResetFireAlarm(bool);
private:
    Ui::PageFire *ui;
    QList<QLabel*> m_lSHDList[6];
    QList<QLabel*> m_lLHDList[6];
    QList<uint8_t> SHD_stat_list_[6];
    QList<uint8_t> LHD_stat_list_[6];
private:
    void setResetBtnVisible(bool xVisible);
    void updateResetBtnVisibleStat();
};

#endif // PAGEFIRE_H
